package com.cloudfast.common.echarts;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * echarts 结果格式封装
 */
@Setter
@Getter
public class EchartsResult {
    //返回的数据
    private Map<String, List<Map<String, Object>>> echartsData = new HashMap<>();

    public void addData(String key, List<Map<String, Object>> data) {
        getEchartsData().put(key, data);
    }
}
